package com.vinjune.redislock;

import java.lang.annotation.*;

/**
 * Created by 000376 on 2017/9/4.
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface CacheLock {

    String lockedPrefix() default "";//redis 锁key的前缀

    long timeOut() default 2000;//锁时间

    int expireTime() default 100000;//key在redis里存在的时间，100S
}
